/**
 * @FileName Facade.java
 * @Package com.designMode.facade
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-20 上午10:29:53
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.facade;

/**
 * @author 顾博君
 * @ClassName Facade
 * @Date 2016-1-20 上午10:29:53
 * @Function 外观对象
 */
public class Facade {
    // 被委托的对象
    private ClassA a = new ClassA();
    private ClassB b = new ClassB();
    private ClassC c = new ClassC();

    // 提供给外部访问的方法
    public void methodA() {
        this.a.doSomethingA();
    }

    public void methodB() {
        this.b.doSomethingB();
    }

    public void methodC() {
        this.c.doSomethingC();
    }
}
